package com.mate.cloud.redisson.datatype;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.client.codec.StringCodec;
import org.redisson.config.Config;

public class RedissonClientUtil {
    public static RedissonClient getClient() {
        Config config = new Config();
        config.useSingleServer().setAddress("redis://192.168.110.36:6379")
                .setPassword("seata@user123");

        config.setCodec(new StringCodec());
        return Redisson.create(config);
    }
}
